projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb00c9
)
Avoid shadowing a variable
author
Paolo Borelli
<pborelli@gnome.org>
Tue, 29 Nov 2011 20:14:24 +0000
(21:14 +0100)
committer
Paolo Borelli
<pborelli@gnome.org>
Tue, 29 Nov 2011 20:28:30 +0000
(21:28 +0100)
Move bg_color variable to an inner scope.
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index 600b6ac1a37a8a44e01ab62fb23cc69ded36bfc6..f7635213d35193c8396be4c1f3a855fe7c136e17 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-4117,8
+4117,6
@@
gtk_label_draw (GtkWidget *widget,
if (priv->text && (*priv->text != '\0'))
{
- GdkRGBA bg_color, fg_color;
-
get_layout_location (label, &x, &y);
context = gtk_widget_get_style_context (widget);
@@
-4138,6
+4136,7
@@
gtk_label_draw (GtkWidget *widget,
{
gint range[2];
cairo_region_t *clip;
+ GdkRGBA bg_color, fg_color;
range[0] = info->selection_anchor;
range[1] = info->selection_end;